#ifndef _MBPORTW_HAL_H_
#define	_MBPORTW_HAL_H_

#include "stdint.h"
#include "mbdef.h"

#ifdef   _MBPORTW_MODULE_
#define  MB_EXT
#else
#define  MB_EXT  extern
#endif      


MB_EXT mbObjType mbwObj;
MB_EXT mbCmdBuffType mbwCmdBuff[32];

void mbwInit(mbModeType mbMode, uint32_t ulBaudRate, mbParityType eParity);
void mbwTimeoutHandle(void);
void mbwRtuTimerRun(void);

#undef MB_EXT

#endif	/* _MBPORTZ_HAL_H_ */

